package com.manage.system.api.dto;

import com.manage.system.api.entity.SysRole;
import com.manage.common.core.valid.OtherGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  数据传输对象
 * </p>
 *
 * @author zhangqing
 * @since 2021-03-05
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysRoleDto extends SysRole implements Serializable {

    @NotNull(message = "菜单权限不能为空", groups = {OtherGroup.class})
    private List<Long> menuIds;

}
